package com.kuang.controller;

import com.kuang.service.AsynService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot-09-test
 * @description:
 * @author: 陈恩涛
 * @create: 2020-11-03 17:42
 **/

@RestController
public class AsynController {

    @Autowired
    AsynService asynService;

    @GetMapping("/hello")
    public String hello(){
        asynService.hello();
        return "hello!";
    }
}
